<script language="php">
session_start();

if (!isset($_SESSION['userlogin'])) 
{
	header("Location:index.php");
}
require('Formatting.php');
</script>
<link rel="stylesheet" type="text/css" href="BuildAndControlStyling.css">

<script type="text/javascript">
  window.onload = function()
  {
    var x=0;
    var y=0;

    navigator.geolocation.getCurrentPosition(showPosition);
    
    function showPosition(position)
     {
         x = position.coords.latitude;
         y = position.coords.longitude;
        document.coordinateForm.latitude.value = x;
        document.coordinateForm.longitude.value = y;
    }
  }
</script>

<head>
<title>
	Claim Land
</title>
</head>

<script>
//adapted from http://docs.jquery.com/Plugins/Validation
  $(document).ready(function()
  {
    $("#registrationForm").validate();
  });
</script>

<script language="php">
	Heading();
</script>

<html>
<body class=<?php teamScheme();?>>

<br/><br/>
<h1>Land Claims</h1>

<iframe class="scout" 
src="https://www.google.com/fusiontables/embedviz?viz=MAP&q=select+col1%3E%3E1+from+3655178+&h=false&lat=-26.19418654108016&lng=28.030284405899124&z=14&t=1&l=col1%3E%3E1">
</iframe>

<form class="scoutRequest" action="captureQuery.php" method="post" name="coordinateForm">
	<label class="inputcoord">Latitude:</label><input readonly="readonly" class="gpscoord" name="latitude" value=""/>
	<label class="inputcoord">Longitude:</label><input readonly="readonly" class="gpscoord" name="longitude" value=""/><br/><br/>
	<input type="submit" value="Attempt Capture!"</button>
</form>

<script language="php">
LinksBot();
</script>
</body>
</html>